package org.example.demo4.model;

import io.swagger.v3.oas.annotations.media.Schema;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.util.Date;

/**
 * 登录日志 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Schema(name = "登录日志")
@Table(value = "sys_logininfor")
public class SysLogininforEntity {

    /**
     * 主键id
     */
    @Schema(description = "主键id")
    @Id(keyType = KeyType.Auto)
    private Long infoId;

    /**
     * 账号
     */
    @Schema(description = "账号")
    @Column(value = "user_name")
    private String userName;

    /**
     * ip地址
     */
    @Schema(description = "ip地址")
    @Column(value = "ipaddr")
    private String ipaddr;

    /**
     * 内外网
     */
    @Schema(description = "内外网")
    @Column(value = "login_location")
    private String loginLocation;

    /**
     * 登录浏览器
     */
    @Schema(description = "登录浏览器")
    @Column(value = "browser")
    private String browser;

    /**
     * 操作系统
     */
    @Schema(description = "操作系统")
    @Column(value = "os")
    private String os;

    /**
     * 状态
     */
    @Schema(description = "状态")
    @Column(value = "status")
    private String status;

    /**
     * 返回消息
     */
    @Schema(description = "返回消息")
    @Column(value = "msg")
    private String msg;

    /**
     * 登录时间
     */
    @Schema(description = "登录时间")
    @Column(value = "login_time")
    private Date loginTime;


    public Long getInfoId() {
        return infoId;
    }

    public void setInfoId(Long infoId) {
        this.infoId = infoId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIpaddr() {
        return ipaddr;
    }

    public void setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr;
    }

    public String getLoginLocation() {
        return loginLocation;
    }

    public void setLoginLocation(String loginLocation) {
        this.loginLocation = loginLocation;
    }

    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }
}
